const vm = new Vue({
  el: "#app",
  data: {},
  methods: {
    getData(){
      this.$http.get("/getUser").then( res => {
        this.username = res.body.username
        if (!this.username) {
          window.location.href = '/logreg'
        }
      })
    }

  },
  mounted() {
    this.getData()
  },
})